﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Le Van Dai</title>
    <script type="text/javascript" src="Java.js"></script>
</head>
<body>
    Num A: 
    <input type="text" id="numA" /> 
    <br />
    Num B:
    <input type="text" id="numB" />
    <br />
    Result :
    <input type="text" id="res" disabled="true" />
    <br />
    <input type="button"  value="+" onclick="setResult(add(getA(),getB()));" />
    <input type="button"  value="-" onclick="setResult(sub(getA(),getB()));" />
    <input type="button"  value="*" onclick="setResult(mul(getA(),getB()));" />
    <input type="button"  value="/" onclick="setResult(div(getA(),getB()));" />
    <input type="button"  value="%" onclick="setResult(mod(getA(),getB()));" />
    </body>
</html>
